import request from '@/utils/request'

export function modulefather(params) {
  return request({
    url: '/a/u/moudle/father',
    method: 'get',
    params:params
  })
}
export function moduleson() {
  return request({
    url: '/a/u/moudle/fatherson',
    method: 'get',
  })
}
export function delmodule(id) {
  return request({
    url: '/a/u/moudle/'+id,
    method: 'delete',
  })
}
export function checkmodule(params) {
  return request({
    url: '/a/u/moudle/son',
    method: 'get',
    params:params
  })
}
export function addmodule(params) {
  return request({
    url: '/a/u/moudle',
    method: 'post',
    params:params
  })
}
export function modulelist(params) {
  return request({
    url: '/a/u/moudle/list',
    method: 'get',
    params:params
  })
}
export function editmodule(id,params) {
  return request({
    url: '/a/u/moudle/'+id,
    method: 'post',
    params:params
  })
}
